#ifndef KUKARSIUDPSERVERDLL_H
#define KUKARSIUDPSERVERDLL_H

#include <QObject>
#include <QUdpSocket>
#include <QString>
#include <QByteArray>

#include "kukarsiudpserverdll_global.h"

class KUKARSIUDPSERVERDLLSHARED_EXPORT KuKaRsiUdpServerDLL:QObject{
Q_OBJECT
public:
    KuKaRsiUdpServerDLL();
    ~KuKaRsiUdpServerDLL();

private:
    QUdpSocket  *kukaSocket = nullptr;
    QHostAddress kukaAddr;
    quint16      kukaPort;

    QByteArray   RecvData;
    QByteArray   SendData;

    bool RecvDataReadyRead;
    bool WriteDataReadySend;

public:
    void UdpWriteData();
    void UdpReadData();

    void KuKaDataWrite(QByteArray Data);
    void KuKaDataRead(bool& ReadDone,QByteArray& Data);

};

#endif // KUKARSIUDPSERVERDLL_H
